package com.caigou.mapper.cms;

import com.caigou.bean.cms.entity.Contribute;
import com.caigou.bean.cms.param.ContributeQueryParam;

import java.util.List;

public interface ContributeMapper {
    Contribute selectByPrimaryKey(int id);
    int insertSelective(Contribute contribute);
    int getCountByChannelId(int channelId);
    int getCountByType(int type);
    int getCountByPublishType(int publishType);
    List<Contribute> queryContribute(ContributeQueryParam param);
    int updateContribute(Contribute contribute);
    int getCountByProcessStatus(int processStatus);

    List<Contribute> queryContributeByUserId(String userId);

    Contribute selectDetailByPrimaryKey(int id);
}
